﻿using ProjBackEnd.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace ProjBackEnd.Areas.Comprehensive.Models
{
    /// <summary>
    /// 文件上传结果集
    /// </summary>
    public class ResultUploadFileCommon : BaseResultInfo
    {
        /// <summary>
        /// 上传结果列表
        /// </summary>
        public List<string> filereslist { get; set; }
    }

    /// <summary>
    /// 归档文件列表结果集
    /// </summary>
    public class ResultArcFiles : BaseResultInfo
    {
        /// <summary>
        /// 归档文件列表
        /// </summary>
        public List<ArcFileInfo> filelist { get; set; }
    }

    /// <summary>
    /// 归档文件展示信息
    /// </summary>
    public class ArcFileInfo
    {
        /// <summary>
        /// 归档文件流水号
        /// </summary>
        public int fileid { get; set; }
        /// <summary>
        /// 文件显示名称
        /// </summary>
        public string filenm { get; set; } = "";
        /// <summary>
        /// 文件扩展名
        /// </summary>
        public string extnm { get; set; } = "";
        /// <summary>
        /// 上传时间
        /// </summary>
        public string uploaddt { get; set; } = "";
        /// <summary>
        /// 上传人
        /// </summary>
        public string creator { get; set; } = "";
    }

    /// <summary>
    /// 归档文件删除请求
    /// </summary>
    public class ReqDelArcFile : BaseUserRequest
    {
        /// <summary>
        /// 归档文件编号
        /// </summary>
        [Required(ErrorMessage = "归档文件编号是必需的")]
        public int fileid { get; set; }
    }

}